<template>
  <div class="type">
    <h1>按类选择</h1>
    <ul class="type-list">
      <li v-for="(item, index) in typeList" :key="index">
        <img :src="item.imgUrl" alt="item.title" />
        <p>{{ item.title }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      typeList: [
        {
          imgUrl: require("../../assets/images/type1.png"),
          title: "卸妆",
        },
        {
          imgUrl: require("../../assets/images/type2.png"),
          title: "洁面",
        },
        {
          imgUrl: require("../../assets/images/type3.png"),
          title: "护肤水",
        },
        {
          imgUrl: require("../../assets/images/type4.png"),
          title: "眼部",
        },
        {
          imgUrl: require("../../assets/images/type5.png"),
          title: "精华",
        },
        {
          imgUrl: require("../../assets/images/type6.png"),
          title: "乳液·面霜",
        },
        {
          imgUrl: require("../../assets/images/type7.png"),
          title: "防晒",
        },
        {
          imgUrl: require("../../assets/images/type8.png"),
          title: "面膜",
        },
        {
          imgUrl: require("../../assets/images/type9.png"),
          title: "清洁面膜",
        },
        {
          imgUrl: require("../../assets/images/type10.png"),
          title: "美容仪器",
        },
      ],
    };
  },

  components: {},

  computed: {},

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.type {
  width: 100%;

  h1 {
    margin-left: 34px;
    font-size: 32px;
    font-weight: 600;
  }

  .type-list {
    width: 100%;
    height: 790px;
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;
    padding: 56px 30px 90px 30px;

    li {
      width: 25%;
      text-align: center;

      img {
        width: 116px;
        height: 116px;
      }

      p {
        font-size: 24px;
        color: #565656;
        line-height: 78px;
      }
    }
  }
}
</style>
